package dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;


	public interface UsersDao {
		public Map<String,Object> query(@Param("account") String account);
		public void add(@Param("account") String account,@Param("password") String password,@Param("nickname") String nickname,
				@Param("reg_date") String reg_date);
		public Map<String,Object> LastId();
		public Map<String,Object> queryone(@Param("account") String account,@Param("password") String password
				);
		public Map<String,Object> querynickname(@Param("id") String id);
		public List<Map<String,Object>> queryweek();
		public Map<String,Object> queryweekin(@Param("user_id") String user_id);
		public Map<String,Object> queryweekout(@Param("user_id") String user_id);
		public List<Map<String,Object>> querycountin(@Param("a")int a,@Param("user_id") String user_id);
		public List<Map<String,Object>> querycountout(@Param("a")int a,@Param("user_id") String user_id);
		public void save(@Param("user_id") String user_id,@Param("date_time") String date_time,@Param("place") String place,
				@Param("money_in") String money_in,@Param("kind") String kind,@Param("remark") String remark);
		public void save2(@Param("user_id") String user_id,@Param("date_time") String date_time,@Param("place") String place,
				@Param("money_out") String money_out,@Param("kind") String kind,@Param("remark") String remark);
		public Map<String,Object> querymonthin(@Param("user_id") String user_id);
		public Map<String,Object> querymonthout(@Param("user_id") String user_id);
		public List<Map<String,Object>> querykindin(@Param("user_id") String user_id);
		public List<Map<String,Object>> querykindout(@Param("user_id") String user_id);
		public List<Map<String,Object>> chaxun(@Param("date_time") String date_time,@Param("place") String place,@Param("money_out") String money_out,
				@Param("money_in") String money_in,@Param("kind") String kind,@Param("remark") String remark,@Param("user_id") String user_id);
		public List<Map<String,Object>> zongji(@Param("user_id") String user_id);
		public List<Map<String,Object>> zongji2(@Param("user_id") String user_id);
		public List<Map<String,Object>> querymore(@Param("id") String id,@Param("user_id") String user_id);
		public void del(@Param("id") String id,@Param("user_id") String user_id);
	}
